<template>
  <div class="crumb">
    <!-- 详情页 -->
    <template v-for="(item, index) in navs">
      <a href="#" :key="index">
        {{ item.name }}
      </a>
      <template v-if="index < navs.length - 1">/</template>
    </template>
    <!-- 全部商品页 -->
    <template v-for="(item, index) in goods">
      <a href="#" :key="index">
        {{ item.name }}
      </a>
      <template v-if="index < goods.length - 1">/</template>
    </template>
  </div>
</template>
 
<script>
export default {
  props: ["navs", "goods"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.crumb {
  margin-bottom: 10px;
  a {
    text-decoration: none;
    color: #000;
  }
}
</style>